//
//  BcTradeRecordCell.m
//  NtoccDriverNew
//
//  Created by mac on 2021/3/11.
//  Copyright © 2021 GCY. All rights reserved.
//

#import "BcTradeRecordCell.h"

@interface BcTradeRecordCell ()
@property (weak, nonatomic) IBOutlet UILabel *amountLab;
@property (weak, nonatomic) IBOutlet UILabel *orderDetailNumberLab;
@property (weak, nonatomic) IBOutlet UILabel *dateLab;
@property (weak, nonatomic) IBOutlet UIView *lineView;
@property (weak, nonatomic) IBOutlet UILabel *freightTypeLab;

@property (weak, nonatomic) IBOutlet UILabel *payWayLab;
@property (weak, nonatomic) IBOutlet UILabel *payStatusLab;

@end

@implementation BcTradeRecordCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    _lineView.backgroundColor = Line_TextColor;
    _amountLab.textColor = Red_TextColor;
    _orderDetailNumberLab.textColor = Light_TextColor;
    _dateLab.textColor = Light_TextColor;

}

- (void)setModel:(BcTradeRecordModel *)model {
    
    _freightTypeLab.text = model.isPayAdvanceName;
    _amountLab.text = [NSString stringWithFormat:@"%.2f", model.amount];
    _orderDetailNumberLab.text = model.orderDetailNumber;
    _dateLab.text = model.gmtCreated;
    
    _payWayLab.text = model.payTypeName;
    _payStatusLab.text = model.payStatusName;

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
